﻿using com.guojin.core.io;
using com.guojin.core.io.message;

namespace com.guojin.mj.net.message.game
{
    public class BetInfoRet : Message
    {
        public static int TYPE = 12;
        public static int ID = 13;

        public int BetType { get; set; } // 1普通下注  2单倍下注
        public int LocationIndex { get; set; } // 
        public int BetScore { get; set; } //下注的金额


        public void decode(Input _in)
        {
            BetType = _in.readInt();
            LocationIndex = _in.readInt();
            BetScore = _in.readInt();
        }

        public void encode(Output _out)
        {

        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("BetInfoRet[betType={0}, UserID={1}, BetScore ={2}]", BetType,
                LocationIndex, BetScore);
        }
    }
}